package br.com.ffm.praticas.bean;

public class Product {
	
	private int id;
	private String barCode;
	private String productName;
	private Category category;
	private ProductType productType;
	private double unitValue;
	
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param barCode the barCode to set
	 */
	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	/**
	 * @return the barCode
	 */
	public String getBarCode() {
		return barCode;
	}

	/**
	 * @param productName the productName to set
	 */
	public void setProductName(String productName) {
		this.productName = productName;
	}

	/**
	 * @return the productName
	 */
	public String getProductName() {
		return productName;
	}

	/**
	 * @param category the category to set
	 */
	public void setCategory(Category category) {
		this.category = category;
	}

	/**
	 * @return the category
	 */
	public Category getCategory() {
		return category;
	}

	/**
	 * @param productTipe the productType to set
	 */
	public void setProductType(ProductType productType) {
		this.productType = productType;
	}

	/**
	 * @return the productType
	 */
	public ProductType getProductType() {
		return productType;
	}

	/**
	 * @param unitValue the unitValue to set
	 */
	public boolean setUnitValue(double unitValue) {
		if (unitValue > 0) {
			this.unitValue = unitValue;
			return true;
		}
		return false;
	}

	/**
	 * @return the unitValue
	 */
	public double getUnitValue() {
		return unitValue;
	}

}
